package edu.uts.reekie.designer.implementation.edit;

import org.eclipse.draw2d.IFigure;

import edu.uts.reekie.designer.figures.FigureFactory;
import edu.uts.reekie.designer.implementation.figures.ApplicationComponentFigure;
import edu.uts.reekie.designer.implementation.figures.ContainerComponentFigure;
import edu.uts.reekie.designer.implementation.model.ApplicationComponent;
import edu.uts.reekie.designer.implementation.model.ContainerComponent;
import edu.uts.reekie.designer.model.ModelFactory;

public class ApplicationComponentEditPart extends ViewComponentEditPart {

	public ApplicationComponentEditPart(ModelFactory mf, FigureFactory ff) {
		super(mf, ff);
		setSupportsMultiple(true);
	}


	protected IFigure createFigure() {
		ApplicationComponentFigure f = new ApplicationComponentFigure();
		f.setName(getComponentModel().getName());
		return f;
	}
	ApplicationComponent getComponentModel() {
		return (ApplicationComponent)getModel();
	}

}
